<div class="form_item form_item_selector_single" id="item_!{$item.id}">
	<strong>!{if $item.required eq true}<span class="red">*</span>!{/if}!{$item.name}：</strong>
	<div>
		<select id="target_!{$item.id}">
			<option value="_blank">新窗口</option>
			<option value="_top">最上层窗口</option>
			<option value="_parent">父窗口</option>
			<option value="_self">当前窗口</option>
			<option value="0">指定窗口</option>
		</select>
		<input type="text" class="text_input" style="display:none" name="!{$item.id}"/>
	</div>
	!{html_radios options=$item.values name=$item.id separator='　' checked=$item.value}
	<p>!{$item.desc}</p>
</div>
<script>
	$(function(){
		var default_!{$item.id}_val = $('input[name="!{$item.id}"]').val();
		if(default_!{$item.id}_val=='_blank'||default_!{$item.id}_val=='_top'||default_!{$item.id}_val=='_parent'||default_!{$item.id}_val=='_self'||default_!{$item.id}_val==''){
			$('input[name="!{$item.id}"]').hide();
		}else{
			$('input[name="!{$item.id}"]').show();
		}
		$('#target_!{$item.id}').change(function(){
			var val = $(this).val();
			if(val == '0'){
				$('input[name="!{$item.id}"]').show().val('');
			}else{
				$('input[name="!{$item.id}"]').hide().val(val);
				
			}
		});
	});
</script>